﻿@model MvcMusicStore.Genre

@{
    ViewBag.Title = "Browse Albums";
}
 
<div class="genre">
    <h3><em>@Model.nameGenre</em> Albums</h3>
 
    <ul id="album-list">
        @foreach (var album in Model.Album)
        {
            <li>
                <a href="@Url.Action("Details", 
                    new { id = album.id })">
                    <img alt="@album.titleAlbum" src="@album.coverAlbum" />
                    <span>@album.titleAlbum</span>
                </a>
            </li>
        }
    </ul>
</div>
@*@{
    ViewBag.Title = "Browse";
}

<h2>Browsing Genre: @Model.nameGenre</h2>

<ul>
    @foreach (var album in Model.Album)
    {
        <li>
         @Html.ActionLink(album.titleAlbum,"Details", new { id = album.id})
        </li>
    }
</ul>*@
